<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    let l1 = [2,4,3],l2 = [5,6,4];
    let addTwoNumbers = function(l1, l2) {
        let a1 = l1.reverse();
        let a2 = l2.reverse();
        let num1 = '',  num2 = '';
        a1.map((item)=>{
            num1 += item.toString()
        })
        a2.map((item)=>{
            num2 += item.toString()
        });
        return Number(num1) +   Number(num2)
    };
</script>
<script>
    let isPalindrome = function(x) {
        let str = x.toString();
        let a1 =  str.split('');
        let a2 = JSON.parse(JSON.stringify(a1)).reverse();
        return a1===a2
    };
</script>
</html>
